home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / acpi / tosh-wireless.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2009-10-13  |  455b  |  21 lines

  1. #!/bin/sh
  2.  
  3. test -f /usr/share/acpi-support/key-constants || exit 0
  4.  
  5. . /usr/share/acpi-support/state-funcs
  6.  
  7. if isAnyWirelessPoweredOn; then
  8.     if [ -x /usr/bin/toshset ]; then
  9.         if `toshset -bluetooth | grep -q attached`; then
  10.                 toshset -bluetooth off
  11.                 toggleAllWirelessStates
  12.         else
  13.                 toshset -bluetooth on
  14.         fi
  15.     else
  16.     toggleAllWirelessStates
  17.     fi
  18. else
  19.         toggleAllWirelessStates
  20. fi
  21.